package com.ljs.myspringboot.service.impl;

import com.ljs.myspringboot.entity.Customer;
import com.ljs.myspringboot.repository.CustomerRepository;
import com.ljs.myspringboot.service.CustomerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService {
    @Resource
    CustomerRepository customerRepository;

    @Override
    public List<Customer> selCus() {
        return customerRepository.selCus();
    }

    @Override
    public Customer sel(String cname) {
        return customerRepository.sel(cname);
    }
}
